package org.example.mrrope.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.example.mrrope.service.ProductionScheduleDeleteService;
import org.example.mrrope.utils.DingUtil;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ProductionScheduleDeleteServiceImpl implements ProductionScheduleDeleteService {
    @Autowired
    private DingUtil dingUtil;

    @Override
    public Integer deleteProductionSchedule(String soNum) {
        try {
            log.info("删除制绳开始");
            JSONObject searchJson_zs = new JSONObject();
            searchJson_zs.put("searchField", "textField_lxvknj7i");
            searchJson_zs.put("searchValue", soNum);
            dingUtil.yiDaSearchReturnData("", searchJson_zs);


            log.info("删除制绳结束");
            return null;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
